CalcTool (c) S Robinson 1999 simon@sbrobinson.freeserve.co.uk CalcTool comprises of the following functions, which can be called from the Psion calulator by using the "Load OPL" option from the Special menu (Psion-O). Select Calctool, and the functions can be used by typing the relevant function name. (NB - Remember to insert a colon before the opening bracket). Programmers may also use the functions in software by using the LOADM command within the software. Note that if you do so, the arguments passed to the functions and the result returned, must be floating-point. For example, Fact:(t%) will produce a type violation. This can be overcome by using the FLT and INT functions - refer to the programming manual for further information. hcf:(x,y) - Highest Common Factor lcm:(a,b) - Lowest Common Multiple mod:(a,b) - a reduced modulus b Fact:(n) - n! (n factorial) nCr:(n,r) - n Combination r nPr:(n,r) - n Permutation r Fib:(n) - nth number in Fibonacci series (0,1,1,2,3,5,8...) ClearMem: - Resets all memories to zero TimeNow: - Time in seconds since 00:00 1/1/70 SecsTill:(Year,Month,Day,Hour,Minute,Second) - Seconds until specified time DaysTill:(Year,Month,Day) - Days until specified date Speed:(Miles,Yards,Hours,Minutes,Seconds) - Speed calculation. AND:(x,y) - Logical AND function OR:(x,y) - Logical OR function NOT:(x) - Logical NOT function XOR:(x,y) - Logical XOR function NB These Logical function give the result that would be obtained if the arguments were converted to binary - eg AND:(10,7) = 1010 AND 0111 = 0010 = 2